import { effect } from "./effect.js";

import ref, { shallowRef } from "./ref.js";

const count = ref({ count: 0, test1: { a: 0 }});
const state2 = shallowRef({ count: 0, test: { a: 0 } });
// console.log(count);
// const test = ref(count)
// console.log(test === count);

effect(() => {
  console.log("fn");
  console.log(count.value.test1.a);
  console.log(state2.value.test.a);
});
console.log("----------------------");
// count.value.count = 1;
// count.value.test1.a = 1;
state2.value.test.a = 1;
